package com.wuad.platformwuad.module.study.threadDemo;

public class ThreadTest extends Thread{

    @Override
    public void run() {
        for(int i=0; i<10; i++){
            System.out.println("x" + getName() + " " + i);
        }
    }

    public static void main(String [] args){

        for(int y=0; y<100; y++){
            System.out.println("y" + Thread.currentThread().getName() + " " + y);

            new ThreadTest().start();
            new ThreadTest().start();
        }
    }
}
